﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LS.Cores
{
    /// <summary>
    /// 统计接口
    /// </summary>
    public interface ICmsStatistics
    {
        /// <summary>
        /// 统计访问量 今日 昨天 前天
        /// </summary>
        /// <returns></returns>
        DataTable GetTraffic();

        /// <summary>
        /// 统计入驻量
        /// </summary>
        /// <returns></returns>
        DataTable GetSettled();

        /// <summary>
        /// 近一周访问趋势
        /// </summary>
        /// <returns></returns>
        DataTable GetVisitLineWeek(string starttime, string endtime);

        /// <summary>
        /// 企业访问量 top
        /// </summary>
        /// <returns></returns>
        DataTable GetCompanyVisitTop(int top);

        /// <summary>
        /// 设备企业访问量 top
        /// </summary>
        /// <returns></returns>
        DataTable GetPrductVisitCompanyTop(int top,string userId);

        /// <summary>
        /// 设备访问量 top
        /// </summary>
        /// <returns></returns>
        DataTable GetPrductVisitTop(int top);

        /// <summary>
        /// 设备最新更新
        /// </summary>
        /// <returns></returns>
        DataTable GetPrductUpdateOrder(int top,string userId);
    }
}
